
<script>

// form1 is form name
// t1 is element name that value will be changed 

	function checkQuote(){
		var s=form1.t1.value;
		form1.t1.value= s.replace(/'/g,"''");
	}

</script>